package com.hp.bon.sgw.scsp;

/**
 * Provides SumUp protocol constants.
 * 
 * @author <a href="http://mina.apache.org">Apache MINA Project</a>
 */
public class SCSPConstants {
	public static final String ATTR_HOST_ID = "HOST_ID";
	public static final String ATTR_PASSWORD = "PASSWORD";
	public static final String ATTR_Session_Info = "Session_Info";
	public static final String ATTR_PEER_STATE = "peer_state";
	public static final String ATTR_retransmittingDelayNanaTime = "retransmittingDelayNanaTime";
	public static final int HEAD_LENGTH = 8;
	public static final int MAX_LENGTH = 1024 * 1024 * 10;

	public class ResultCode {
		public static final int SUCCESS = 0;
		public static final int ERR_Dup_Connection = -111;
		public static final int ERR_Remote_And_Local_Same_Name = -112;
		public static final int ERR_MID_MISSED = -2;
		public static final int ERR_SESSION_CLOSED = -101;
		public static final int ERR_SESSION_NOT_EXIST = -102;
		public static final int ERR_NO_EXPECTED_MSG = 11008;
		public static final int ERR_DUP_CONNECTION = 11008;
		public static final int ERR_DWR_EXCEPTION = 11010;
		public static final int ERR_XML_FORMAT_FAILED = 11501;
		public static final int ERR_SCSP_VERION_EXCEPTION = 11508;
	}
}
